﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="消费者_新文件夹1_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 100%;
            height: 73px;
            background-image: url('../../photo/20140522103921-125267937.jpg');
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="auto-style1">
            <tr>
                <td>&nbsp;</td>
            </tr>
        </table>
    
    </div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" BorderColor="Maroon" BorderStyle="None" DataKeyNames="CAR_ID" DataSourceID="SqlDataSource1" OnDataBinding="GridView1_DataBinding" OnSelectedIndexChanging="GridView1_SelectedIndexChanging">
            <Columns>
                <asp:BoundField DataField="CAR_NUMBER" HeaderText="编号" SortExpression="CAR_NUMBER" />
                <asp:BoundField DataField="CAR_NAME" HeaderText="姓名" SortExpression="CAR_NAME" />
                <asp:BoundField DataField="CAR_ID" HeaderText="车牌" ReadOnly="True" SortExpression="CAR_ID" />
                <asp:BoundField DataField="CAR_PRICE" HeaderText="旅游起价" SortExpression="CAR_PRICE" />
                <asp:BoundField DataField="CAR_OID" HeaderText="驾龄" SortExpression="CAR_OID" />
                <asp:BoundField DataField="CAR_STATE" HeaderText="状态" SortExpression="CAR_STATE" />
                <asp:TemplateField HeaderText="租车">
                    <ItemTemplate>
                        <asp:Button ID="Button1" runat="server" Text="租车" BackColor="Lime" BorderColor="Lime" OnClick="Button1_Click1" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:testDBConnectionString %>" SelectCommand="SELECT * FROM [Car_users]"></asp:SqlDataSource>
    </form>
</body>
</html>
